package com.doudou.commons.validate;


import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @program:
 * @description
 * @author: 傻男人
 * @create: 2019-10-08 09:23
 **/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = ListNotEmptyHandler.class)
public @interface ListNotEmpty {

    String message() default "数组不能为空";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
